import { reqOrder } from '@/api'
const state = {
  roomName: ''
}
const mutations = {
  GETHOTELROOMNAME(state, roomName) {
    state.roomName = roomName
  }
}
const getters = {}
const actions = {
  getHotelRoomName({ commit }, name) {
    commit('GETHOTELROOMNAME', name)
    // console.log(111, name);
  },
  async order({ commit }, { rooms_name, phone, name, detail_info, pay_status, min_price }) {
    const data = { rooms_name, phone, name, detail_info, pay_status, min_price }
    let result = await reqOrder(data)
    // console.log(result);
  }
}
export default {
  state,
  mutations,
  actions,
  getters
}